package com.augmentum.login.dao;

import java.util.List;

import com.augmentum.login.model.Exam;
import com.augmentum.login.model.Exam_question;
import com.augmentum.login.model.Page;

public interface ExamDao {
    public Exam getByName(String name);
    public void deleteBatchExams(String[] ids, int state);
    public void updateState(String[] examIds);
    public void updateExam(Exam exam);
    public int createExam(Exam exam);
    public List<Exam> findExamsByPage(String name, String description, String order,Page page);
    public int getExamCount(String name, String description);
    public Exam getById(int id);
    public void saveQuestionForBatch(List<Exam_question> list);
    public List<Exam> findDraftByPage(String name,Page page);
    public int getDraftCount(String name);
    public void deleteQuestionForBatch(List<Exam_question> list);
    public List<Exam_question> getExamQuestion(int examId);
}
